﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

using Weazel.Badger.Vhdl.Expressions;

#endregion

namespace Weazel.Badger.Vhdl.Statements
{
  /// <summary>
  /// The "black box statement" is used to print an "black box"
  /// lines to the resulting VHDL file.
  /// </summary>
  public class BlackBoxStatement : SequentialStatement
  {
    private string[] statements;

    public BlackBoxStatement(string statement)
    {
			this.statements = new string[] { statement };
    }

		public BlackBoxStatement(string[] statements)
		{
			this.statements = statements;
		}

    public override void Verify(ref List<VerifyMessage> messages)
    {
      // empty
    }

		public override void Resolve(Entity entity, Process process, StatementCollection statements)
    {
      // empty
    }

    public override void Write(System.CodeDom.Compiler.IndentedTextWriter writer)
    {
			foreach(string statement in statements)
				writer.WriteLine(statement);
    }
  }
}
